Integrating a filter into the VirtualDub source tree |
Most external filters can be easily imported into the VirtualDub source tree with only minor modifications. The programming model is very similar, so these are the few necessary changes:
extern HINSTANCE g_hInst;to gain access to VirtualDub's global instance pointer. Dialog resources should begin with IDD_FILTER_ for consistency.
Some of VirtualDub's internal filters can also be removed similarly to create external filters. Others, such as resize, make use of internal routines in resample.cpp and require that additional routines be lifted out. A few, such as fill, make extensive use of internal interfaces and can't be lifted at all.
VirtualDub external filter SDK 1.05 | ©1999-2001 Avery Lee <phaeron@virtualdub.org> |